package com.zcsy.manage.service.mall.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zcsy.manage.model.mall.GoodsRead;
import com.zcsy.manage.persistence.mall.GoodsReadDao;
import com.zcsy.manage.service.mall.IGoodsReadService;

/**
 * @Title: GoodsReadServiceImpl.java
 * @Package： com.zcsy.manage.service.mall.impl 
 * @Description: 用户浏览记录service层实现类
 *
 * @author caiyinli 13277030520@163.com
 * @Copyright: 2015 武汉中财数元信息技术有限公司 All rights reserved.
 * @date 2016年8月2日
 * @version 1.0
 * @see JDK1.7.0_75
 * @since
 */
@Service
public class GoodsReadServiceImpl implements IGoodsReadService {

	@Autowired
	private GoodsReadDao goodsReadDao;
	
	@Override
	public int insert(GoodsRead record) {
		return goodsReadDao.insert(record);
	}

	@Override
	public List<GoodsRead> getLatestGoodsReads(String userAccount) {
		return goodsReadDao.getLatestGoodsReads(userAccount);
	}

}
